import axios from './axios'
import resfulParamsToUrl from './resfulParamsToUrl'
//文章资讯

// 文章集合查询
export const getArticleList = params => {
	return axios.post(
		resfulParamsToUrl('/sys/noAuth/tArticleInformation/getList', params),
		params,
	)
}

// 分页查询
export const getArticlePageList = params => {
	return axios.post(
		resfulParamsToUrl('/sys/noAuth/tArticleInformation/pageList', params),
		params,
	)
}

// 查询
export const getArticleModel = params => {
	axios.prototype._loading_ = false
	return axios.post(
		resfulParamsToUrl('/sys/noAuth/tArticleInformation/getModel', params),
		params,
	)
}

//新增
export const articleInsert = params => {
	axios.prototype._loading_ = false
	return axios.post(
		resfulParamsToUrl('/sys/noAuth/tArticleInformation/insert', params),
		params,
	)
}
//修改
export const articleUpdate = params => {
	axios.prototype._loading_ = false
	return axios.post(
		resfulParamsToUrl('/sys/noAuth/tArticleInformation/update', params),
		params,
	)
}
//删除
export const articleDelete = params => {
	axios.prototype._loading_ = false
	return axios.post(
		resfulParamsToUrl('/sys/noAuth/tArticleInformation/delete', params),
		params,
	)
}

//获得作者信息
export const articleAuthorData = params => {
	axios.prototype._loading_ = false
	return axios.post(
		resfulParamsToUrl('/sys/noAuth/tArticleInformation/getAuthorData', params),
		params,
	)
}

//标签数据
// 分页查询
export const getTagPageList = params => {
	return axios.post(
		resfulParamsToUrl('/sys/noAuth/tTagData/pageList', params),
		params,
	)
}

// 查询
export const getTagModel = params => {
	axios.prototype._loading_ = false
	return axios.post(
		resfulParamsToUrl('/sys/noAuth/tTagData/getModel', params),
		params,
	)
}

// 查询集合
export const getTagList = params => {
	axios.prototype._loading_ = false
	return axios.post(
		resfulParamsToUrl('/sys/noAuth/tTagData/getList', params),
		params,
	)
}

//新增
export const tagInsert = params => {
	axios.prototype._loading_ = false
	return axios.post(
		resfulParamsToUrl('/sys/noAuth/tTagData/insert', params),
		params,
	)
}
//修改
export const tagUpdate = params => {
	axios.prototype._loading_ = false
	return axios.post(
		resfulParamsToUrl('/sys/noAuth/tTagData/update', params),
		params,
	)
}
//删除
export const tagDelete = params => {
	axios.prototype._loading_ = false
	return axios.post(
		resfulParamsToUrl('/sys/noAuth/tTagData/delete', params),
		params,
	)
}
